<?php

/**
 * myAppointmentReason form.
 *
 * @package    docplus.co.za
 * @subpackage form
 * @author     Fox Matuku
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class myAppointmentReasonForm extends sfForm {

	public function configure() {
		$this->widgetSchema['appointment_reason_id'] = new sfWidgetFormDoctrineChoice(array('model' => 'AppointmentReason', 'add_empty' => 'Please select your visit reason'), array('class' => 'select-box'));
		$this->validatorSchema['appointment_reason_id'] = new sfValidatorDoctrineChoice(array('required' => false, 'model' => 'AppointmentReason'));

		$this->widgetSchema->setNameFormat('book_now[%s]');
	}

}
